#include <xp/bas/system.h>
#include <xp/bas/stdio.h>

int xp_main ()
{
	xp_time_t uptime;
	if (xp_getuptime(&uptime) == -1) {
		xp_printf (XP_TEXT("cannot get uptime\n"));
		return -1;
	}

	xp_printf (XP_TEXT("uptime: %lld milliseconds\n"),
		(long long)uptime);
	return 0;
}

